package com.hnqcgczy.dao;

import com.hnqcgczy.vo.TUser;

import java.sql.SQLException;

public interface IUserDao {
    /***
     * 检查昵称是否可用
     * @param tuId
     * @return
     * @throws SQLException
     */
    boolean getUserByTuId(String tuId) throws SQLException;

    /***
     * 注册（新增）
     * @param user
     * @return
     * @throws SQLException
     */
    boolean reg(TUser user) throws SQLException;

    /***
     * 登陆
     * @param id
     * @param password
     * @return
     * @throws SQLException
     */
    boolean login(String id,String password) throws SQLException;
}
